]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Use translation_y of 0 to hide keyboard
authorJonas Dreßler <verdre@v0yd.nl>
Sat, 28 Mar 2020 13:34:24 +0000 (14:34 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Sat, 28 Mar 2020 20:45:32 +0000 (20:45 +0000)
Since we show the keyboard using a translation_y of -keyboardHeight, the
keyboard will be moved down far enough to be out of sight by setting
translation_y to 0.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1142

js/ui/layout.js

index f688fa2441537467031008113cf3ceb7220ec6d9..53a55c7705a40f487117f91122dc15aa25dc66a1 100644 (file)
@@ -765,7 +765,7 @@ var LayoutManager = GObject.registerClass({
             this._keyboardHeightNotifyId = 0;
         }
         this.keyboardBox.ease({
-            translation_y: this.keyboardBox.height,
+            translation_y: 0,
             opacity: 0,
             duration: immediate ? 0 : KEYBOARD_ANIMATION_TIME,
             mode: Clutter.AnimationMode.EASE_IN_QUAD,